package com.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.comon.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:TQ02
 * Data:2024-08-24
 * Time:14:49
 * Text：
 */
@ApiModel("文章的数据")
@Data
@TableName("article_info")
public class ArticleInfo extends BaseEntity {

    @TableId(value = "a_id",type =IdType.ASSIGN_ID)
    @Schema(description = "文章ID")
    private Long aId;

    @Schema(description = "文章标题")
    private String title;

    @Schema(description = "文章简介")
    private String synopsis;

    @Schema(description = "文章内容")
    private String content;

    @Schema(description = "用户ID")
    private Long uId;

    @Schema(description = "阅读量")
    private int rcount;

    @Schema(description = "状态")
    private int state;

    @Schema(description = "文章类型")
    private String type;

}
